package com.cndongtai.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import com.cndongtai.net.Server;

public class DTUListener implements ServletContextListener{
	
	private Server server = new Server(32896);

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		server.interrupt();
	}

	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		server.start();
	}

}
